/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package east2west.interfaces;

import east2west.dto.CustomerDTO;
import java.util.ArrayList;

/**
 *
 * @author anhtuan
 */
public interface CustomerInterface {

    ArrayList<CustomerDTO> readByAll();

    ArrayList<CustomerDTO> findByName(String name);

    CustomerDTO findById(int id);

    ArrayList<CustomerDTO> findByJob(int jobId);
    CustomerDTO findByEmail(String email);

    int create(CustomerDTO dto);

    boolean update(CustomerDTO dto);

    boolean delete(int id);

    boolean delete(CustomerDTO dto);
}
